<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8" %>
<h1>学生成绩</h1>
<%@ page import="view.DataList,dao.Score" %>
<table class="table table-striped">
    <tr>
        <td>科目</td>
        <td>分数</td>
    </tr>

    <% DataList<Score.Data> dl = (DataList<Score.Data>) request.getAttribute("list"); %>
    <% Score.Data d;
    while((d = dl.next()) != null) { %> 
    <tr>
        <td><%= d.getSubject() %></td>
        <td><%= d.getScore() %></td>
    </tr>
    <% } %>
</table>
